package com.kingyun.gpsinspection.purificationservice.facade.model.jsm;

import java.io.Serializable;

/**
 * @version V1.0
 * @Package com.cqhilink.iot.jobstandardmanagement.facade.model
 * @Description: ${TODO}(ZTree模型树：封装树)
 * @author: YuPeng
 * @date: 2016/11/16,0016
 */
public class Ztree implements Serializable {
    private String id;
    private String pId;
    private String name;
    private Boolean isParent;
    //是否为组织机构
    private int isOrg;
    //是否为生产实体
    private int isEntity;
    //组织机构层级
    private String orgLevel;
    private Boolean open = false;
    //private String owenRole ;
    private String iconSkin;

    private Boolean checked = false;
    private Object obj;//存放任意对象
    // fastjson 使用 http://blog.csdn.net/wx_962464/article/details/37612861
    // 这里值得注意的是， 默认的构造函数一定要写，不然是无法解析的。
    // （对于fastjson 严格按照JavaBean的规范来，有一点不对就无法解析，这里一定要切记，每一个实体类的属性的get , set方法必须写）

    /**
     * 选择特性值类型
     */
    private String cellFormItemType;

    public Ztree() {
    }

    public int getIsEntity() {
        return isEntity;
    }

    public void setIsEntity(int isEntity) {
        this.isEntity = isEntity;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getIsParent() {
        return isParent;
    }

    public void setIsParent(Boolean isParent) {
        this.isParent = isParent;
    }

    public Boolean getParent() {
        return isParent;
    }

    public void setParent(Boolean parent) {
        this.isParent = parent;
    }

    public int getIsOrg() {
        return isOrg;
    }

    public void setIsOrg(int isOrg) {
        this.isOrg = isOrg;
    }

    public String getOrgLevel() {
        return orgLevel;
    }

    public void setOrgLevel(String orgLevel) {
        this.orgLevel = orgLevel;
    }

    public String getIconSkin() {
        return iconSkin;
    }

    public void setIconSkin(String iconSkin) {
        this.iconSkin = iconSkin;
    }

    public String getCellFormItemType() {
        return cellFormItemType;
    }

    public void setCellFormItemType(String cellFormItemType) {
        this.cellFormItemType = cellFormItemType;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }
}
